var News = {

	loadAllNews : function(ajax_request){

		var data = eval("(" + ajax_request.responseText + ")");
		for(var i=0;i<data.news.length;i++) {
			   	var manageNewsItem = {
					newsTitle:data.news[i].newsTitle,
					newsContent:data.news[i].newsContent,
					newsPublisher:data.news[i].newsPublisher,
					newsDate:data.news[i].newsDate,
					editNews:data.news[i].editNews,
					deleteNews:data.news[i].deleteNews
				}; 
				manageNewsStore.newItem(manageNewsItem);
		}
//		dijit.byId("loadDiv").hide();
	},
	
	askForNewsInfo : function() {
		var href = "getNews.do";
		ajaxRequest(href, this.loadAllNews, null);
	},
};
